package com.beike.service;

import com.beike.common.PageResult;
import com.beike.entity.User;
import com.beike.entity.UserRole;
import java.util.List;

public interface UserService {
    UserRole login(String username, String password, UserRole expectedRole);
    User createUser(User user);
    User updateUser(Long id, User user);
    void deleteUser(Long id);
    List<User> getAllUsers();
    User getUserById(Long id);
    void resetPassword(Long id);
    void updateStatus(Long id, String status);

    /**
     * 分页条件查询用户
     */
    PageResult<User> getUsersByPage(
            String username,
            String name,
            UserRole role,
            String status,
            int current,
            int pageSize
    );
}
